<div class="text-center">
  <div class="btn-group">
    <%- if controller_name != 'sessions' %>
      <%= link_to "登录", new_session_path(resource_name), class: "btn btn-outline-primary" %>
    <% end %>

    <%- if devise_mapping.registerable? && controller_name != 'registrations' %>
      <%= link_to "注册", new_registration_path(resource_name), class: "btn btn-outline-primary" %>
    <% end %>

    <%- if devise_mapping.recoverable? && controller_name != 'passwords' && controller_name != 'registrations' %>
      <%= link_to "忘记密码了？", new_password_path(resource_name), class: "btn btn-outline-primary" %>
    <% end %>

    <%- if devise_mapping.confirmable? && controller_name != 'confirmations' %>
      <%= link_to "没有收到确认提示吗？", new_confirmation_path(resource_name), class: "btn btn-outline-primary" %>
    <% end %>

    <%- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks' %>
      <%= link_to "没有手动啊解锁指令吗？", new_unlock_path(resource_name), class: "btn btn-outline-primary" %>
    <% end %>

    <%- if devise_mapping.omniauthable? %>
      <%- resource_class.omniauth_providers.each do |provider| %>
        <%= link_to "使用  #{OmniAuth::Utils.camelize(provider)} 登录", omniauth_authorize_path(resource_name, provider), class: "btn btn-outline-primary" %>
      <% end %>
    <% end %>
  </div>
</div>
